let arr = [10, 200, 33, 24, 0, 15, 0, 66, 17, 98];
let newArr = [];
//创建新数组
for (let i = 0; i < arr.length; i++) {
   arr[i]?newArr.push(arr[i]):``
}

//开始操作
let sum = 0, oddSum = 0, max = [0,0], min = [newArr[0],0]
for (let i = newArr.length-1;i >= 0;i--) {
    sum += newArr[i]
    newArr[i] % 2 ? oddSum += newArr[i] : ``
    if (newArr[i] > max[0]) {
        max[0] = newArr[i]
        max[1] = i
    }
    if (newArr[i] < min[0]) {
        min[0] = newArr[i]
        min[1] = i
    }
    console.log(`第${i}项：${newArr[i]}`);//倒序输出
}
console.log(`
    总和为：${sum}
    奇数和为：${oddSum}
    最大值为：${max[0]} --- 角标：${max[1]}
    最小值为：${min[0]} --- 角标：${min[1]}
`);